package me.wangcai.onlinechat.model.message;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
public class Message {
    private MessageTag tag;
    private String username;
    private String message;
    private long time;

    public Message(MessageTag tag, String username, String message) {
        this.tag = tag;
        this.username = username;
        this.message = message;
        this.time = System.currentTimeMillis();
    }
}
